import com.github.pagehelper.PageInfo;
import com.itheima.dao.PermissionDao;
import com.itheima.dao.RoleDao;
import com.itheima.domain.Permission;
import com.itheima.domain.Role;
import com.itheima.service.impl.PermissionServiceImpl;
import com.itheima.service.impl.RoleServiceImpl;
import com.itheima.util.MyBatisUtils;
import org.apache.ibatis.session.SqlSession;
import org.junit.Test;

import java.util.List;

public class test02 {
@Test
    public void method() {
    SqlSession sqlSession = MyBatisUtils.openSession();
    RoleDao mapper = sqlSession.getMapper(RoleDao.class);
    List<Role> list = mapper.findList();
    for (Role role : list) {
        System.out.println(role);

    }



}
}
